//
//  SiteManager.h
//  EasyToo
//
//  Created by zhengzhe on 13-8-25.
//
//

#import <Foundation/Foundation.h>
#import "ServerCommunicationDelegate.h"
#import "AllSiteInfo.h"

@protocol SiteManagerDelegate <NSObject>
@optional

//查询所有门票
- (void)qryAllSiteInfo:(BOOL)isSuccess
           AllSiteInfo:(NSMutableArray*)allSiteInfo
       TicketInfoArray:(NSMutableArray*)ticketInfoArray;

//购买门票
- (void)buySiteTicket:(BOOL)isSuccess
                   tn:(NSString*)tn;

@end

@interface SiteManager : NSObject <ServerCommunicationDelegate>

@property (nonatomic, assign) id<SiteManagerDelegate> delegate;

+ (SiteManager*)shareManager;


//查询所有门票
- (void)searchAllSiteInfo:(NSString*)sceneType;

//购买门票
- (void)buySiteTicket:(NSString*)reserveName
          reserveDate:(NSString*)reserveDate
        reserveNumber:(NSString*)reserveNumber
          mobilephone:(NSString*)mobilephone
        sceneTicketId:(NSString*)sceneTicketId
           mobileType:(NSString*)mobileType
              webTime:(NSString*)webTime
             allPrice:(int)allPrice;


@end
